home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{7BC73EBA-545A-11D1-B9C1-444553540000}#3.0#0"; "HIDE.OCX"
- Begin VB.Form frmExample
- BackColor = &H00C0C0C0&
- Caption = "Example of the Hide OCX"
- ClientHeight = 2550
- ClientLeft = 3915
- ClientTop = 3270
- ClientWidth = 3840
- Icon = "Form1.frx":0000
- LinkTopic = "Form1"
- ScaleHeight = 2550
- ScaleWidth = 3840
- Begin HideOCX.efxHide efxHide1
- Left = 600
- Top = 2040
- _ExtentX = 714
- _ExtentY = 714
- End
- Begin VB.TextBox txtReshow
- Height = 285
- Left = 360
- MaxLength = 2
- TabIndex = 4
- Top = 1320
- Width = 615
- End
- Begin VB.CheckBox chkSwitchWindow
- Caption = "Remove from Switch Window"
- Height = 255
- Left = 360
- TabIndex = 3
- Top = 840
- Width = 3135
- End
- Begin VB.CheckBox chkTaskList
- Caption = "Remove from Task List"
- Height = 255
- Left = 360
- TabIndex = 2
- Top = 360
- Width = 3135
- End
- Begin VB.Timer Timer1
- Interval = 5000
- Left = 120
- Top = 2040
- End
- Begin VB.CommandButton cmdExit
- Caption = "Exit"
- Height = 375
- Left = 2520
- TabIndex = 1
- Top = 2040
- Width = 1215
- End
- Begin VB.CommandButton cmdEnable
- Caption = "Enable"
- Height = 375
- Left = 1200
- TabIndex = 0
- Top = 2040
- Width = 1215
- End
- Begin VB.Label Label1
- Caption = "Delay before reshow (seconds)"
- Height = 255
- Left = 1080
- TabIndex = 5
- Top = 1320
- Width = 2415
- End
- Attribute VB_Name = "frmExample"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdEnable_Click()
- If chkTaskList.Value = 0 And chkSwitchWindow.Value = 0 Then efxHide1.HideMode = 0
- If chkTaskList.Value = 1 And chkSwitchWindow.Value = 0 Then efxHide1.HideMode = 1
- If chkTaskList.Value = 0 And chkSwitchWindow.Value = 1 Then efxHide1.HideMode = 2
- If chkTaskList.Value = 1 And chkSwitchWindow.Value = 1 Then efxHide1.HideMode = 3
- If Int(Val(Trim(txtReshow.Text))) < 5 Then txtReshow.Text = "5"
- If Int(Val(Trim(txtReshow.Text))) > 60 Then txtReshow.Text = "60"
- Timer1.Interval = Int(Val(Trim(txtReshow.Text))) * 1000
- Timer1.Enabled = True
- efxHide1.Enabled = True
- End Sub
- Private Sub cmdExit_Click()
- End
- End Sub
- Private Sub Timer1_Timer()
- Timer1.Enabled = False
- efxHide1.Enabled = False
- End Sub
-